const { Service } = require("egg");

class DeptService extends Service {
    async readList() {
        let sql = "select * from dept";
        let res = await this.app.mysql.query(sql);
        return res;
    }
}

module.exports = DeptService;
